package com.cocotingo.snail;

public class MouseWheelEvent extends Event<java.awt.event.MouseWheelEvent> {

	public MouseWheelEvent(java.awt.event.MouseWheelEvent AWTEvent) {
		super(AWTEvent);
	}
	
	public int getRotation() {
		java.awt.event.MouseWheelEvent e = (java.awt.event.MouseWheelEvent) getAWTEvent();
		if (e.getScrollType() == java.awt.event.MouseWheelEvent.WHEEL_UNIT_SCROLL) {
			return e.getUnitsToScroll();
		} else {
			return e.getWheelRotation();
		}
	}

}
